import { request } from "utils"
import { config } from 'setting'

const { api } = config
const { statecodelist } = api

export function listStateCode (params) {
    return request({
        url: statecodelist,
        method: 'get',
        data: params,
    })
}

export function queryStateCode (params) {
    return request({
        url: statecodelist,
        method: 'get',
        data: params,
    })
}

export function addStateCode (params) {
    return request({
        url: statecodelist,
        method: 'post',
        data: params,
    })
}

export function editStateCode (params) {
    return request({
        url: statecodelist,
        method: 'post',
        data: params,
    })
}

export function delStateCode (params) {
    return request({
        url: statecodelist,
        method: 'post',
        data: params,
    })
}